
//
//  LYSelectCompanyCell.m
//  SelectCity
//
//  Created by liuyan on 2019/3/22.
//  Copyright © 2019年 liuyan. All rights reserved.
//

#import "LYSelectCompanyCell.h"

@interface LYSelectCompanyCell()

@property (nonatomic, strong) UILabel *titleLabel;

@end

@implementation LYSelectCompanyCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}
- (void)initUI {
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, WIDTH-25, 45)];
    self.titleLabel.font = [UIFont systemFontOfSize:15];
    self.titleLabel.textColor = RGB(34, 34, 34);
    [self.contentView addSubview:self.titleLabel];
}

-(void)setModel:(PublicCategoryElementModel *)model{
    _titleLabel.text = model.name;
    if (model.isSelect) {
         _titleLabel.textColor = RGB(153, 153, 153);
    } else {
        _titleLabel.textColor = RGB(34, 34, 34);
    }
}

@end
